package com.example.room;



import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

@Dao
public interface WordDao {
  @Insert
  void insert(Word word);
  @Query("Delete from work_table")
    void deleteAll();
  @Query("select * from work_table order by word asc")
  LiveData<List<Word>> getAllWords();

}
